<?php
$a=10;
$b=4;
while($b!=0){
	$t=$a%$b;
	$a=$b;
	$b=$t;
	}
	print($b);
?>